<%-- 
    Document   : index
    Created on : 2017-2-4, 10:49:33
    Author     : Administrator
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>接入监测系统</title>
        <link rel="stylesheet" type="text/css" href="extjs/build/classic/theme-crisp/resources/theme-crisp-all.css">
        <link rel="stylesheet" type="text/css" href="extjs/build/classic/theme-crisp/resources/theme-crisp-all-debug.css">

        <script type="text/javascript" charset="UTF-8" src="extjs/build/ext-bootstrap.js"></script>
        <script type="text/javascript" charset="UTF-8" src="extjs/build/ext-all.js"></script>
        <script type="text/javascript" charset="UTF-8" src="extjs/build/ext-all-debug.js"></script>
        <script type="text/javascript" charset="UTF-8" src="extjs/build/classic/locale/locale-zh_CN.js"></script>
        <script type="text/javascript" charset="UTF-8" src="extjs/build/classic/locale/locale-zh_CN-debug.js"></script>
        <!--播放音乐的脚本-->
        <script type="text/javascript" src="jquery/jquery.min.js"></script>
        <script type="text/javascript" src="jquery/jquery.jplayer.min.js"></script>
        <script>
            Ext.onReady(function () {
                Ext.tip.QuickTipManager.init();
                Ext.EventManager.onWindowResize(function (width, height) {
//                    panel.center();//设置窗口随着浏览器大小而居中显示
                    panel.setHeight(height);
                    panel.setWidth(width);
//                    Ext.Msg.alert("提示", "窗口大小已经改变" + width + ";" + height);//能进来方法

                });
                var store = Ext.create('Ext.data.TreeStore', {
                    root: {
                        contentEl: 'west',
                        text: '接入监测',
                        description: 'Root description',
                        expanded: true,
                        rootVisable: false,
                        children: [
                            //数北
                            {
                                id: 'trunk_shubei',
                                text: '数北接入监测',
                                leaf: false,
                                children: [
                                    //接入监测
                                    {
                                        id: "branch_1",
                                        text: '接入监测',
                                        leaf: false,
                                        children: [
                                            //微信公众号
                                            {
                                                id: "jr_weixin",
                                                text: '微信监测',
                                                leaf: false,
                                                children: [
                                                    {
                                                        id: 'jr_weixin_1113',
                                                        cls: 'x-panel-default-framed-outer-border-trbl',
                                                        text: '微信群监测',
                                                        leaf: true,
                                                        href: 'wx_1113.htm?trunk=shubei',
                                                        hrefTarget: 'mainshow',
                                                    },
                                                    {
                                                        id: 'jr_weixin_msg',
                                                        cls: 'x-panel-default-framed-outer-border-trbl',
                                                        text: '微信消息监测',
                                                        leaf: true,
                                                        href: 'wx_supervise.htm?trunk=shubei',
                                                        hrefTarget: 'mainshow',
                                                    },
                                                    {
                                                        id: 'jr_weixin_user',
                                                        cls: 'x-panel-default-framed-outer-border-trbl',
                                                        text: '微信用户监测',
                                                        leaf: true,
                                                        href: 'wx_user.htm?trunk=shubei',
                                                        hrefTarget: 'mainshow',
                                                    },
                                                    {
                                                        id: 'jr_weixin_yuqing',
                                                        cls: 'x-panel-default-framed-outer-border-trbl',
                                                        text: '微信舆情监控',
                                                        leaf: true,
                                                        href: 'wx_yuqing.htm?trunk=shubei',
                                                        hrefTarget: 'mainshow',
                                                    },
                                                ]
                                            },
                                            //微博
                                            {
                                                id: "jr_weibo",
                                                text: '微博监测',
                                                leaf: false,
                                                children: [
                                                    {
                                                        id: 'jr_weibo_xinlang',
                                                        cls: 'x-panel-default-framed-outer-border-trbl',
                                                        text: '新浪微博',
                                                        leaf: true,
                                                        href: 'wb_sina.htm?trunk=shubei',
                                                        hrefTarget: 'mainshow',
                                                    },
                                                    {
                                                        id: 'jr_weibo_tengxun',
                                                        cls: 'x-panel-default-framed-outer-border-trbl',
                                                        text: '腾讯微博',
                                                        href: 'wb_tencent.htm?trunk=shubei',
                                                        hrefTarget: 'mainshow',
                                                        leaf: true,
                                                    },
                                                ]
                                            },
                                            //百度贴吧
                                            {
                                                id: "jr_bdtieba",
                                                text: '百度贴吧监测',
                                                leaf: false,
                                                children: [
                                                    {
                                                        id: 'jr_bdtieba_ba',
                                                        cls: 'x-panel-default-framed-outer-border-trbl',
                                                        text: '百度贴吧监测',
                                                        leaf: true,
                                                        href: 'baidu_zhutie.htm?trunk=shubei',
                                                        hrefTarget: 'mainshow',
                                                    },
                                                    {
                                                        id: 'jr_bdtieba_userba',
                                                        cls: 'x-panel-default-framed-outer-border-trbl',
                                                        text: '用户和吧监测',
                                                        leaf: true,
                                                        href: 'baidu_user.htm?trunk=shubei',
                                                        hrefTarget: 'mainshow'
                                                    }
                                                ]
                                            },
                                            //搜索引擎
                                            {
                                                id: "jr_ssyq",
                                                text: '搜索引擎监测',
                                                leaf: false,
                                                children: [
                                                    {
                                                        id: 'jr_ssyq_baidu',
                                                        cls: 'x-panel-default-framed-outer-border-trbl',
                                                        text: '百度接入监测',
                                                        leaf: true,
                                                        href: 'se_baidu_jr.htm?trunk=shubei',
                                                        hrefTarget: 'mainshow',
                                                    },
                                                    {
                                                        id: 'jr_ssyq_360',
                                                        cls: 'x-panel-default-framed-outer-border-trbl',
                                                        text: '360接入监测',
                                                        leaf: true,
                                                        href: 'se_360_jr.htm?trunk=shubei',
                                                        hrefTarget: 'mainshow',
                                                    },
                                                    {
                                                        id: 'jr_ssyq_sougou',
                                                        cls: 'x-panel-default-framed-outer-border-trbl',
                                                        text: '搜狗接入监测',
                                                        leaf: true,
                                                        href: 'se_sougou_jr.htm?trunk=shubei',
                                                        hrefTarget: 'mainshow'
                                                    }
                                                ]
                                            },
                                            //论坛
                                            {
                                                id: "jr_luntan",
                                                text: '论坛监测',
                                                leaf: false,
                                                children: [
                                                    {
                                                        id: 'jr_luntan_tianya',
                                                        cls: 'x-panel-default-framed-outer-border-trbl',
                                                        text: '天涯论坛监测',
                                                        leaf: true,
                                                        href: 'forum_tianya.htm?trunk=shubei',
                                                        hrefTarget: 'mainshow',
                                                    },
                                                    {
                                                        id: 'jr_luntan_kaidi',
                                                        cls: 'x-panel-default-framed-outer-border-trbl',
                                                        text: '凯迪论坛监测',
                                                        leaf: true,
                                                        href: 'forum_kaidi.htm?trunk=shubei',
                                                        hrefTarget: 'mainshow',
                                                    },
                                                    {
                                                        id: 'jr_luntan_zhonghua',
                                                        cls: 'x-panel-default-framed-outer-border-trbl',
                                                        text: '中华论坛监测',
                                                        leaf: true,
                                                        href: 'forum_zhonghua.htm?trunk=shubei',
                                                        hrefTarget: 'mainshow',
                                                    },
                                                    {
                                                        id: 'jr_luntan_qiangguo',
                                                        cls: 'x-panel-default-framed-outer-border-trbl',
                                                        text: '强国论坛监测',
                                                        leaf: true,
                                                        href: 'forum_qiangguo.htm?trunk=shubei',
                                                        hrefTarget: 'mainshow',
                                                    },
                                                    {
                                                        id: 'jr_luntan_aika',
                                                        cls: 'x-panel-default-framed-outer-border-trbl',
                                                        text: '爱卡汽车论坛监测',
                                                        leaf: true,
                                                        href: 'forum_aikaqiche.htm?trunk=shubei',
                                                        hrefTarget: 'mainshow',
                                                    },
                                                    {
                                                        id: 'jr_luntan_tiexue',
                                                        cls: 'x-panel-default-framed-outer-border-trbl',
                                                        text: '铁血论坛监测',
                                                        leaf: true,
                                                        href: 'forum_tiexue.htm?trunk=shubei',
                                                        hrefTarget: 'mainshow',
                                                    }
                                                ]
                                            },
                                            //新闻
                                            {
                                                id: "jr_xinwen",
                                                text: '新闻监测',
                                                leaf: false,
                                                children: [
                                                    {
                                                        id: 'jr_xinwen_jr',
                                                        cls: 'x-panel-default-framed-outer-border-trbl',
                                                        text: '接入监测',
                                                        leaf: true,
                                                        href: 'news_jr.htm?trunk=shubei',
                                                        hrefTarget: 'mainshow',
                                                    },
                                                    {
                                                        id: 'jr_xinwen_rk',
                                                        cls: 'x-panel-default-framed-outer-border-trbl',
                                                        text: '入库监测',
                                                        leaf: true,
                                                        href: 'news_rk.htm?trunk=shubei',
                                                        hrefTarget: 'mainshow',
                                                    },
                                                    {
                                                        id: 'jr_xinwen_trs',
                                                        cls: 'x-panel-default-framed-outer-border-trbl',
                                                        text: 'TRS接入监测',
                                                        leaf: true,
                                                        href: 'news_trs.htm?trunk=shubei',
                                                        hrefTarget: 'mainshow',
                                                    },
                                                    {
                                                        id: 'jr_xinwen_mpp',
                                                        cls: 'x-panel-default-framed-outer-border-trbl',
                                                        text: 'MPP入库监测',
                                                        leaf: true,
                                                        href: 'news_mpp.htm?trunk=shubei',
                                                        hrefTarget: 'mainshow',
                                                    },
                                                ]
                                            },
                                            //新闻/博客/论坛采集监测，暂时未开发
                                            {
                                                id: "jr_caiji",
                                                text: '采集监测',
                                                leaf: false,
                                                children: [
                                                    {
                                                        id: 'jr_caiji_xinwen',
                                                        cls: 'x-panel-default-framed-outer-border-trbl',
                                                        text: '新闻监测',
                                                        leaf: true,
                                                        href: 'caiji_news.htm?trunk=shubei',
                                                        hrefTarget: 'mainshow',
                                                    },
                                                    {
                                                        id: 'jr_caiji_boke',
                                                        cls: 'x-panel-default-framed-outer-border-trbl',
                                                        text: '博客监测',
                                                        leaf: true,
                                                        href: 'caiji_news.htm?trunk=shubei',
                                                        hrefTarget: 'mainshow',
                                                    },
                                                    {
                                                        id: 'jr_caiji_luntan',
                                                        cls: 'x-panel-default-framed-outer-border-trbl',
                                                        text: '论坛监测',
                                                        leaf: true,
                                                        href: 'caiji_news.htm?trunk=shubei',
                                                        hrefTarget: 'mainshow',
                                                    },
                                                    {
                                                        id: 'jr_caiji_jwxw',
                                                        cls: 'x-panel-default-framed-outer-border-trbl',
                                                        text: '境外新闻监测',
                                                        leaf: true,
                                                        href: 'caiji_news.htm?trunk=shubei',
                                                        hrefTarget: 'mainshow',
                                                    },
                                                    {
                                                        id: 'jr_caiji_xwmpp',
                                                        cls: 'x-panel-default-framed-outer-border-trbl',
                                                        text: '新闻app监测',
                                                        leaf: true,
                                                        href: 'caiji_news.htm?trunk=shubei',
                                                        hrefTarget: 'mainshow',
                                                    },
                                                ]

                                            },
                                            //要闻-美篇
                                            {
                                                id: "jr_meipian",
                                                text: '要闻-美篇-BK',
                                                leaf: false,
                                                children: [
                                                    {
                                                        id: 'jr_meipian_hdw',
                                                        cls: 'x-panel-default-framed-outer-border-trbl',
                                                        text: '美篇监测',
                                                        leaf: true,
                                                        href: 'meipian.htm?trunk=shubei',
                                                        hrefTarget: 'mainshow',
                                                    },
                                                    {
                                                        id: 'jr_yawen',
                                                        cls: 'x-panel-default-framed-outer-border-trbl',
                                                        text: '要闻监测',
                                                        leaf: true,
                                                        href: 'yaowen.htm?trunk=shubei',
                                                        hrefTarget: 'mainshow',
                                                    },
                                                    {
                                                        id: 'jr_BK',
                                                        cls: 'x-panel-default-framed-outer-border-trbl',
                                                        text: 'BK监测',
                                                        leaf: true,
                                                        href: 'bk.htm?trunk=shubei',
                                                        hrefTarget: 'mainshow',
                                                    },
                                                ]
                                            },
                                            //知乎
                                            {
                                                id: "jr_zhihu",
                                                text: '知乎监测',
                                                leaf: false,
                                                children: [
                                                    {
                                                        id: 'jr_zhihu_hdw',
                                                        cls: 'x-panel-default-framed-outer-border-trbl',
                                                        text: '知乎监测',
                                                        leaf: true,
                                                        href: 'zhihu.htm?trunk=shubei',
                                                        hrefTarget: 'mainshow',
                                                    },
                                                ]
                                            },
                                            //专线
                                            {
                                                id: 'jr_network',
                                                cls: 'x-panel-default-framed-outer-border-trbl',
                                                text: '专线监控',
                                                leaf: false,
                                                children: [
                                                    {
                                                        id: 'jr_zhuanxian_alibaba',
                                                        cls: 'x-panel-default-framed-outer-border-trbl',
                                                        text: '阿里巴巴',
                                                        leaf: true,
                                                        href: 'wx_network.htm?id=alibaba&trunk=shubei',
                                                        hrefTarget: 'mainshow',
                                                    },
                                                    {
                                                        id: 'jr_zhuanxian_360sousuo',
                                                        cls: 'x-panel-default-framed-outer-border-trbl',
                                                        text: '360搜索',
                                                        leaf: true,
                                                        href: 'wx_network.htm?id=360sousuo&trunk=shubei',
                                                        hrefTarget: 'mainshow',
                                                    },
                                                    {
                                                        id: 'jr_zhuanxian_baidu',
                                                        cls: 'x-panel-default-framed-outer-border-trbl',
                                                        text: '百度',
                                                        leaf: true,
                                                        href: 'wx_network.htm?id=baidu&trunk=shubei',
                                                        hrefTarget: 'mainshow',
                                                    },
                                                    {
                                                        id: 'jr_zhuanxian_miaopai',
                                                        cls: 'x-panel-default-framed-outer-border-trbl',
                                                        text: '秒拍',
                                                        leaf: true,
                                                        href: 'wx_network.htm?id=miaopai&trunk=shubei',
                                                        hrefTarget: 'mainshow',
                                                    },
                                                    {
                                                        id: 'jr_zhuanxian_souhu',
                                                        cls: 'x-panel-default-framed-outer-border-trbl',
                                                        text: '搜狐',
                                                        leaf: true,
                                                        href: 'wx_network.htm?id=souhu&trunk=shubei',
                                                        hrefTarget: 'mainshow',
                                                    },
                                                    {
                                                        id: 'jr_zhuanxian_wangyi',
                                                        cls: 'x-panel-default-framed-outer-border-trbl',
                                                        text: '网易',
                                                        leaf: true,
                                                        href: 'wx_network.htm?id=wangyi&trunk=shubei',
                                                        hrefTarget: 'mainshow',
                                                    },
                                                    {
                                                        id: 'jr_zhuanxian_xinlang',
                                                        cls: 'x-panel-default-framed-outer-border-trbl',
                                                        text: '新浪',
                                                        leaf: true,
                                                        href: 'wx_network.htm?id=xinlang&trunk=shubei',
                                                        hrefTarget: 'mainshow',
                                                    },
                                                    {
                                                        id: 'jr_zhuanxian_ku6',
                                                        cls: 'x-panel-default-framed-outer-border-trbl',
                                                        text: '酷6',
                                                        leaf: true,
                                                        href: 'wx_network.htm?id=ku6&trunk=shubei',
                                                        hrefTarget: 'mainshow',
                                                    },
                                                    {
                                                        id: 'jr_zhuanxian_ku6',
                                                        cls: 'x-panel-default-framed-outer-border-trbl',
                                                        text: '酷6',
                                                        leaf: true,
                                                        href: 'wx_network.htm?id=ku6&trunk=shubei',
                                                        hrefTarget: 'mainshow',
                                                    },
                                                    {
                                                        id: 'jr_zhuanxian_sougou',
                                                        cls: 'x-panel-default-framed-outer-border-trbl',
                                                        text: '搜狗',
                                                        leaf: true,
                                                        href: 'wx_network.htm?id=sougou&trunk=shubei',
                                                        hrefTarget: 'mainshow',
                                                    },
                                                    {
                                                        id: 'jr_zhuanxian_tengxun',
                                                        cls: 'x-panel-default-framed-outer-border-trbl',
                                                        text: '腾讯',
                                                        leaf: true,
                                                        href: 'wx_network.htm?id=tengxun&trunk=shubei',
                                                        hrefTarget: 'mainshow',
                                                    },
                                                    {
                                                        id: 'jr_zhuanxian_xiaomi',
                                                        cls: 'x-panel-default-framed-outer-border-trbl',
                                                        text: '小米',
                                                        leaf: true,
                                                        href: 'wx_network.htm?id=xiaomi&trunk=shubei',
                                                        hrefTarget: 'mainshow',
                                                    },
                                                    {
                                                        id: 'jr_zhuanxian_youkutudou',
                                                        cls: 'x-panel-default-framed-outer-border-trbl',
                                                        text: '优酷土豆',
                                                        leaf: true,
                                                        href: 'wx_network.htm?id=youkutudou&trunk=shubei',
                                                        hrefTarget: 'mainshow',
                                                    },
                                                    {
                                                        id: 'jr_zhuanxian_sjjrqk',
                                                        cls: 'x-panel-default-framed-outer-border-trbl',
                                                        text: '数据接入情况',
                                                        leaf: true,
                                                        href: 'wx_network.htm?id=sjjrqk&trunk=shubei',
                                                        hrefTarget: 'mainshow',
                                                    },
                                                ]
                                            },
                                        ]
                                    },
                                    //预警处理
                                    {
                                        id: "branch_2",
                                        text: '预警处理',
                                        leaf: false,
                                        children: [
                                            {
                                                id: 'yujing',
                                                cls: 'x-panel-default-framed-outer-border-trbl',
                                                text: '预警处理',
                                                leaf: true,
                                                href: 'warning_table.htm?trunk=shubei',
                                                hrefTarget: 'mainshow',
                                            },
                                        ]
                                    },
                                    //数据查询
                                    {
                                        id: 'branch_3',
                                        text: '数据查询',
                                        leaf: false,
                                        children: [
                                            {
                                                text: '微信公众号',
                                                id: 'query_weixin',
                                                leaf: false,
                                                children: [
                                                    {
                                                        id: 'query_weixin_gmsg',
                                                        cls: 'x-panel-default-framed-outer-border-trbl',
                                                        text: '群发消息',
                                                        leaf: true,
                                                        href: 'query_dataTable.htm?tableName=tp_msg_wechat_public_group&trunk=shubei',
                                                        hrefTarget: 'mainshow',
                                                    },
                                                    {
                                                        id: 'query_weixin_imsg',
                                                        cls: 'x-panel-default-framed-outer-border-trbl',
                                                        text: '交互消息',
                                                        leaf: true,
                                                        href: 'query_dataTable.htm?tableName=tp_msg_wechat_public_interactive&trunk=shubei',
                                                        hrefTarget: 'mainshow',
                                                    },
                                                ],
                                            },
                                        ]
                                    }
                                ]},
                            //亦庄
//                            {
//                                id: 'trunk_yizhuang',
//                                text: '亦庄接入监测',
//                                leaf: false,
//                                children: [
//                                    {
//                                id: "yz_branch_1",
//                                text: '接入监测',
//                                leaf: false,
//                                children: [
//                                    //微信公众号
//                                    {
//                                        id: "yz_jr_weixin",
//                                        text: '微信监测',
//                                        leaf: false,
//                                        children: [
////                                            {
////                                                id: 'yz_jr_weixin_1113',
////                                                cls: 'x-panel-default-framed-outer-border-trbl',
////                                                text: '微信群监测',
////                                                leaf: true,
////                                                href: 'wx_1113.htm?trunk=yizhuang',
////                                                hrefTarget: 'mainshow',
////                                            },
//                                            {
//                                                id: 'yz_jr_weixin_msg',
//                                                cls: 'x-panel-default-framed-outer-border-trbl',
//                                                text: '微信消息监测',
//                                                leaf: true,
//                                                href: 'wx_supervise.htm?trunk=yizhuang',
//                                                hrefTarget: 'mainshow',
//                                            },
//                                            {
//                                                id: 'yz_jr_weixin_user',
//                                                cls: 'x-panel-default-framed-outer-border-trbl',
//                                                text: '微信用户监测',
//                                                leaf: true,
//                                                href: 'wx_user.htm?trunk=yizhuang',
//                                                hrefTarget: 'mainshow',
//                                            },
////                                            {
////                                                id: 'yz_jr_weixin_yuqing',
////                                                cls: 'x-panel-default-framed-outer-border-trbl',
////                                                text: '微信舆情监控',
////                                                leaf: true,
////                                                href: 'wx_yuqing.htm?trunk=yizhuang',
////                                                hrefTarget: 'mainshow',
////                                            },
//                                        ]
//                                    },
//                                    //微博
//                                    {
//                                        id: "yz_jr_weibo",
//                                        text: '微博监测',
//                                        leaf: false,
//                                        children: [
//                                            {
//                                                id: 'yz_jr_weibo_xinlang',
//                                                cls: 'x-panel-default-framed-outer-border-trbl',
//                                                text: '新浪微博',
//                                                leaf: true,
//                                                href: 'wb_sina.htm?trunk=yizhuang',
//                                                hrefTarget: 'mainshow',
//                                            },
//                                            {
//                                                id: 'yz_jr_weibo_tengxun',
//                                                cls: 'x-panel-default-framed-outer-border-trbl',
//                                                text: '腾讯微博',
//                                                href: 'wb_tencent.htm?trunk=yizhuang',
//                                                hrefTarget: 'mainshow',
//                                                leaf: true,
//                                            },
//                                        ]
//                                    },
//                                    //百度贴吧
//                                    {
//                                        id: "yz_jr_bdtieba",
//                                        text: '百度贴吧监测',
//                                        leaf: false,
//                                        children: [
//                                            {
//                                                id: 'yz_jr_bdtieba_ba',
//                                                cls: 'x-panel-default-framed-outer-border-trbl',
//                                                text: '百度贴吧监测',
//                                                leaf: true,
//                                                href: 'baidu_zhutie.htm?trunk=yizhuang',
//                                                hrefTarget: 'mainshow',
//                                            },
//                                            {
//                                                id: 'yz_jr_bdtieba_userba',
//                                                cls: 'x-panel-default-framed-outer-border-trbl',
//                                                text: '用户和吧监测',
//                                                leaf: true,
//                                                href: 'baidu_user.htm?trunk=yizhuang',
//                                                hrefTarget: 'mainshow'
//                                            }
//                                        ]
//                                    },
//                                    //搜索引擎
//                                    {
//                                        id: "yz_jr_ssyq",
//                                        text: '搜索引擎监测',
//                                        leaf: false,
//                                        children: [
//                                            {
//                                                id: 'yz_jr_ssyq_baidu',
//                                                cls: 'x-panel-default-framed-outer-border-trbl',
//                                                text: '百度接入监测',
//                                                leaf: true,
//                                                href: 'se_baidu_jr.htm?trunk=yizhuang',
//                                                hrefTarget: 'mainshow',
//                                            },
//                                            {
//                                                id: 'yz_jr_ssyq_360',
//                                                cls: 'x-panel-default-framed-outer-border-trbl',
//                                                text: '360接入监测',
//                                                leaf: true,
//                                                href: 'se_360_jr.htm?trunk=yizhuang',
//                                                hrefTarget: 'mainshow',
//                                            },
//                                            {
//                                                id: 'yz_jr_ssyq_sougou',
//                                                cls: 'x-panel-default-framed-outer-border-trbl',
//                                                text: '搜狗接入监测',
//                                                leaf: true,
//                                                href: 'se_sougou_jr.htm?trunk=yizhuang',
//                                                hrefTarget: 'mainshow'
//                                            }
//                                        ]
//                                    },
//                                    //论坛
//                                    {
//                                        id: "yz_jr_luntan",
//                                        text: '论坛监测',
//                                        leaf: false,
//                                        children: [
//                                            {
//                                                id: 'yz_jr_luntan_tianya',
//                                                cls: 'x-panel-default-framed-outer-border-trbl',
//                                                text: '天涯论坛监测',
//                                                leaf: true,
//                                                href: 'forum_tianya.htm?trunk=yizhuang',
//                                                hrefTarget: 'mainshow',
//                                            },
//                                            {
//                                                id: 'yz_jr_luntan_kaidi',
//                                                cls: 'x-panel-default-framed-outer-border-trbl',
//                                                text: '凯迪论坛监测',
//                                                leaf: true,
//                                                href: 'forum_kaidi.htm?trunk=yizhuang',
//                                                hrefTarget: 'mainshow',
//                                            },
//                                            {
//                                                id: 'yz_jr_luntan_zhonghua',
//                                                cls: 'x-panel-default-framed-outer-border-trbl',
//                                                text: '中华论坛监测',
//                                                leaf: true,
//                                                href: 'forum_zhonghua.htm?trunk=yizhuang',
//                                                hrefTarget: 'mainshow',
//                                            },
//                                            {
//                                                id: 'yz_jr_luntan_qiangguo',
//                                                cls: 'x-panel-default-framed-outer-border-trbl',
//                                                text: '强国论坛监测',
//                                                leaf: true,
//                                                href: 'forum_qiangguo.htm?trunk=yizhuang',
//                                                hrefTarget: 'mainshow',
//                                            },
//                                            {
//                                                id: 'yz_jr_luntan_aika',
//                                                cls: 'x-panel-default-framed-outer-border-trbl',
//                                                text: '爱卡汽车论坛监测',
//                                                leaf: true,
//                                                href: 'forum_aikaqiche.htm?trunk=yizhuang',
//                                                hrefTarget: 'mainshow',
//                                            },
//                                            {
//                                                id: 'yz_jr_luntan_tiexue',
//                                                cls: 'x-panel-default-framed-outer-border-trbl',
//                                                text: '铁血论坛监测',
//                                                leaf: true,
//                                                href: 'forum_tiexue.htm?trunk=yizhuang',
//                                                hrefTarget: 'mainshow',
//                                            }
//                                        ]
//                                    },
//                                    //新闻
//                                    {
//                                        id: "yz_jr_xinwen",
//                                        text: '新闻监测',
//                                        leaf: false,
//                                        children: [
//                                            {
//                                                id: 'yz_jr_xinwen_jr',
//                                                cls: 'x-panel-default-framed-outer-border-trbl',
//                                                text: '接入监测',
//                                                leaf: true,
//                                                href: 'news_jr.htm?trunk=yizhuang',
//                                                hrefTarget: 'mainshow',
//                                            },
//                                            {
//                                                id: 'yz_jr_xinwen_rk',
//                                                cls: 'x-panel-default-framed-outer-border-trbl',
//                                                text: '入库监测',
//                                                leaf: true,
//                                                href: 'news_rk.htm?trunk=yizhuang',
//                                                hrefTarget: 'mainshow',
//                                            },
//                                            {
//                                                id: 'yz_jr_xinwen_trs',
//                                                cls: 'x-panel-default-framed-outer-border-trbl',
//                                                text: 'TRS接入监测',
//                                                leaf: true,
//                                                href: 'news_trs.htm?trunk=yizhuang',
//                                                hrefTarget: 'mainshow',
//                                            },
//                                            {
//                                                id: 'yz_jr_xinwen_mpp',
//                                                cls: 'x-panel-default-framed-outer-border-trbl',
//                                                text: 'MPP入库监测',
//                                                leaf: true,
//                                                href: 'news_mpp.htm?trunk=yizhuang',
//                                                hrefTarget: 'mainshow',
//                                            },
//                                        ]
//                                    },
//                                    //新闻/博客/论坛采集监测，暂时未开发
//                                    {
//                                        id: "yz_jr_caiji",
//                                        text: '采集监测',
//                                        leaf: false,
//                                        children: [
//                                            {
//                                                id: 'yz_jr_caiji_xinwen',
//                                                cls: 'x-panel-default-framed-outer-border-trbl',
//                                                text: '新闻监测',
//                                                leaf: true,
//                                                href: 'caiji_news.htm?trunk=yizhuang',
//                                                hrefTarget: 'mainshow',
//                                            },
//                                            {
//                                                id: 'yz_jr_caiji_boke',
//                                                cls: 'x-panel-default-framed-outer-border-trbl',
//                                                text: '博客监测',
//                                                leaf: true,
//                                                href: 'caiji_news.htm?trunk=yizhuang',
//                                                hrefTarget: 'mainshow',
//                                            },
//                                            {
//                                                id: 'yz_jr_caiji_luntan',
//                                                cls: 'x-panel-default-framed-outer-border-trbl',
//                                                text: '论坛监测',
//                                                leaf: true,
//                                                href: 'caiji_news.htm?trunk=yizhuang',
//                                                hrefTarget: 'mainshow',
//                                            },
//                                            {
//                                                id: 'yz_jr_caiji_jwxw',
//                                                cls: 'x-panel-default-framed-outer-border-trbl',
//                                                text: '境外新闻监测',
//                                                leaf: true,
//                                                href: 'caiji_news.htm?trunk=yizhuang',
//                                                hrefTarget: 'mainshow',
//                                            },
//                                            {
//                                                id: 'yz_jr_caiji_xwmpp',
//                                                cls: 'x-panel-default-framed-outer-border-trbl',
//                                                text: '新闻app监测',
//                                                leaf: true,
//                                                href: 'caiji_news.htm?trunk=yizhuang',
//                                                hrefTarget: 'mainshow',
//                                            },
//                                        ]
//
//                                    },
//                                    //要闻-美篇
//                                    {
//                                        id: "yz_jr_meipian",
//                                        text: '要闻-美篇-BK',
//                                        leaf: false,
//                                        children: [
//                                            {
//                                                id: 'yz_jr_meipian_hdw',
//                                                cls: 'x-panel-default-framed-outer-border-trbl',
//                                                text: '美篇监测',
//                                                leaf: true,
//                                                href: 'meipian.htm?trunk=yizhuang',
//                                                hrefTarget: 'mainshow',
//                                            },
//                                            {
//                                                id: 'yz_jr_yawen',
//                                                cls: 'x-panel-default-framed-outer-border-trbl',
//                                                text: '要闻监测',
//                                                leaf: true,
//                                                href: 'yaowen.htm?trunk=yizhuang',
//                                                hrefTarget: 'mainshow',
//                                            },
//                                            {
//                                                id: 'yz_jr_BK',
//                                                cls: 'x-panel-default-framed-outer-border-trbl',
//                                                text: 'BK监测',
//                                                leaf: true,
//                                                href: 'bk.htm?trunk=yizhuang',
//                                                hrefTarget: 'mainshow',
//                                            },
//                                        ]
//                                    },
//                                    //知乎
//                                    {
//                                        id: "jr_zhihu",
//                                        text: '知乎监测',
//                                        leaf: false,
//                                        children: [
//                                            {
//                                                id: 'yz_jr_zhihu_hdw',
//                                                cls: 'x-panel-default-framed-outer-border-trbl',
//                                                text: '知乎监测',
//                                                leaf: true,
//                                                href: 'zhihu.htm?trunk=yizhuang',
//                                                hrefTarget: 'mainshow',
//                                            },
//                                        ]
//                                    },
//                                    //专线
//                                    {
//                                        id: 'yz_jr_network',
//                                        cls: 'x-panel-default-framed-outer-border-trbl',
//                                        text: '专线监控',
//                                        leaf: false,
//                                        children: [
////                                            {
////                                                id: 'yz_jr_zhuanxian_hdw',
////                                                cls: 'x-panel-default-framed-outer-border-trbl',
////                                                text: '专线监控',
////                                                leaf: true,
////                                                href: 'wx_network.htm',
////                                                hrefTarget: 'mainshow',
////                                            },
//                                        ]
//                                    },
//                                ]
//                            },
//                            //预警处理
//                            {
//                                id: "yz_branch_2",
//                                text: '预警处理',
//                                leaf: false,
//                                children: [
//                                    {
//                                        id: 'yz_yujing',
//                                        cls: 'x-panel-default-framed-outer-border-trbl',
//                                        text: '预警处理',
//                                        leaf: true,
//                                        href: 'warning_table.htm?trunk=yizhuang',
//                                        hrefTarget: 'mainshow',
//                                    },
//                                ]
//                            },
//                            //数据查询
//                            {
//                                id: 'yz_branch_3',
//                                text: '数据查询',
//                                leaf: false,
//                                children: [
//                                    {
//                                        text: '微信公众号',
//                                        id: 'yz_query_weixin',
//                                        leaf: false,
//                                        children: [
//                                            {
//                                                id: 'yz_query_weixin_gmsg',
//                                                cls: 'x-panel-default-framed-outer-border-trbl',
//                                                text: '群发消息',
//                                                leaf: true,
//                                                href: 'query_dataTable.htm?trunk=yizhuang',
//                                                hrefTarget: 'mainshow',
//                                            },
//                                            {
//                                                id: 'yz_query_weixin_imsg',
//                                                cls: 'x-panel-default-framed-outer-border-trbl',
//                                                text: '交互消息',
//                                                leaf: true,
//                                                href: 'baidu_zhutie.htm?trunk=yizhuang',
//                                                hrefTarget: 'mainshow',
//                                            },
//                                        ],
//                                    },
//                                ]
//                            }
//                                ]},
                        ]

                    }
                });
                var tree = Ext.create('Ext.tree.Panel', {
                    region: 'west', //for border layout

                    collapsible: true,
                    title: '接入监测系统',
                    bodyStyle: 'background:#ffc;',
                    width: 300,
                    store: store,
                    rootVisible: true,
                    useArrows: true,
                    listeners: {
                        itemclick: function (view, record, item, index, e, eOpts, n) {
//
                        }
                    }
                });
                var main = Ext.create('Ext.panel.Panel', {
                    region: 'center', //for border layout
                    title: "&#12288", //占位符
                    layout: 'fit',
                    width: Ext.getBody().getViewSize().width,
                    height: '100%',
                    html: '<iframe id="main" name="mainshow" frameborder="0" height="100%" width="100%"></iframe>',
                    margins: '5 5 5 5'
                });
                var top = Ext.create('Ext.panel.Panel', {
                    region: 'north', //for border layout
                    id: 'topId'
                });
                var panel = Ext.create('Ext.panel.Panel', {
                    layout: 'border',
                    width: Ext.getBody().getViewSize().width,
                    height: Ext.getBody().getViewSize().height,
                    autoScroll: true,
                    bodyStyle: 'overflow-x:hidden; overflow-y:hidden',
                    items: [
                        top,
                        tree,
                        main
                    ],
                    renderTo: Ext.getBody()
                });



                //音乐播放插件
                // Local copy of jQuery selectors, for performance.
                var my_jPlayer = $("#jquery_jplayer"),
                        my_trackName = $("#jp_container .track-name"),
                        my_playState = $("#jp_container .play-state"),
                        my_extraPlayInfo = $("#jp_container .extra-play-info");

                // Some options
                var opt_play_first = false, // If true, will attempt to auto-play the default track on page loads. No effect on mobile devices, like iOS.
                        opt_auto_play = true, // If true, when a track is selected, it will auto-play.
                        opt_text_playing = "Now playing", // Text when playing
                        opt_text_selected = "Track selected"; // Text when not playing

                // A flag to capture the first track
                var first_track = true;

                // Change the time format
                $.jPlayer.timeFormat.padMin = false;
                $.jPlayer.timeFormat.padSec = false;
                $.jPlayer.timeFormat.sepMin = " min ";
                $.jPlayer.timeFormat.sepSec = " sec";

                // Initialize the play state text
                my_playState.text(opt_text_selected);

                // Instance jPlayer
                my_jPlayer.jPlayer({
                    ready: function () {
                        $("#jp_container .track-default").click();
                    },
                    timeupdate: function (event) {
                        my_extraPlayInfo.text(parseInt(event.jPlayer.status.currentPercentAbsolute, 10) + "%");
                    },
                    play: function (event) {
                        my_playState.text(opt_text_playing);
                    },
                    pause: function (event) {
                        my_playState.text(opt_text_selected);
                    },
                    ended: function (event) {
                        my_playState.text(opt_text_selected);
                    },
                    swfPath: "../music/",
                    cssSelectorAncestor: "#jp_container",
                    supplied: "mp3",
                    wmode: "window"
                });

                // Create click handlers for the different tracks
                $("#jp_container .track").click(function (e) {
                    my_trackName.text($(this).text());
                    my_jPlayer.jPlayer("setMedia", {
                        mp3: $(this).attr("href")
                    });
                    if ((opt_play_first && first_track) || (opt_auto_play && !first_track)) {
                        my_jPlayer.jPlayer("play");
                    }
                    first_track = false;
                    $(this).blur();
                    return false;
                });
                var config = {
                    title: "系统警告",
                    msg: "您有紧急任务需要处理",
//                    width: 400,
//                    height:200,
//                    multiline: true,
                    closable: true,
                    buttons: Ext.MessageBox.YESNOCANCEL,
                    icon: Ext.MessageBox.WARNING,
                    fn: function (btn, txt) {
                        $("#jp_container .jp-stop").click();
                    }
                };

                //检查Session是否过期  
                var IsHaveSession = {
                    run: function () {
//                        $("#jp_container .track-default").click();
//                        Ext.MessageBox.alert('提示', '请尽快处置该任务 ');
                        //调用接口查看是否是有数据,如果有,播放音乐
//                        $("#jp_container .track-default").click();

                        Ext.Ajax.request({
                            url: "getTableList.htm",
                            params: {start: "index", limit: "period"},
                            headers: {
                                'userHeader': 'userMsg'
                            },
                            method: 'POST',
                            success: function (response, options) {

                                if (response.responseText === "yes")
                                {
                                    $("#jp_container .track-default").click();
                                    Ext.MessageBox.show(config);
//                                    Ext.MessageBox.confirm("系统提示", "您要停止播放该提示吗？", function (but) {
//
//                                    });
                                    //启动播放器
                                }
                            },
                            failure: function (response, options) {
//                                Ext.MessageBox.alert('心跳检测失败', '失败原因：' + response.status);

                                Ext.MessageBox.confirm("系统提示", "连接超时", function (but) {
                                    $("#jp_container .jp-stop").click();
                                });
                            }
                        });
                    },
                    interval: 1000 * 60 * 3 //1000=1 second  10分钟请求一次  
                }

                Ext.TaskManager.start(IsHaveSession);
            });
        </script>
        <style>
            <!--

            .demo-container {
                border: 1px solid #009BE3;
                padding:0 20px;
                font-family: "Myriad Pro Regular","Trebuchet MS";
            }

            .demo-container a, .demo-container a:link, .demo-container a:visited, .demo-container a:hover, .demo-container a:focus, .demo-container a:active {
                color: #009BE3;
            }

            .demo-container ul {
                list-style-type:none;
                padding:0;
                margin:1em 0;
                width:100%;
                overflow:hidden;
            }

            .demo-container ul span {
                color: #A0A600;
            }

            .demo-container li {
                float:left;
                margin-right:1em;
            }

            .demo-container p span.track-name {
                color: #CC0090;
            }

            -->
        </style>
    </head>
    <body>

        <div id="jquery_jplayer" style="display: none"></div>

        <!-- Using the cssSelectorAncestor option with the default cssSelector class names to enable control association of standard functions using built in features -->

        <div id="jp_container" class="demo-container" style="display: none">
            <ul>
                <li><span>Select a track : </span></li>
                <li><a href="music/Vi.mp3" class="track track-default">vi</a></li>
                <li> | </li>
                <li><a href="music/Vi.mp3" class="track">The Separation</a></li>
                <li> | </li>
                <li><a href="music/Vi.mp3" class="track">Lismore</a></li>
                <li> | </li>
                <li><a href="music/Vi.mp3" class="track">Thin Ice</a></li>
            </ul>
            <p>
                <span class="play-state"></span> :
                <span class="track-name">nothing</span>
                at <span class="extra-play-info"></span>
                of <span class="jp-duration"></span>, which is
                <span class="jp-current-time"></span>
            </p>
            <ul>
                <li><a class="jp-play" href="#">Play</a></li>
                <li><a class="jp-pause" href="#">Pause</a></li>
                <li><a class="jp-stop" href="#">Stop</a></li>
            </ul>
            <ul>
                <li>volume :</li>
                <li><a class="jp-mute" href="#">Mute</a></li>
                <li><a class="jp-unmute" href="#">Unmute</a></li>
                <li> <a class="jp-volume-bar" href="#">|&lt;----------&gt;|</a></li>
                <li><a class="jp-volume-max" href="#">Max</a></li>
            </ul>
        </div>

    </body>
</html>
